﻿@model LogLayans.Web.Models.LoginViewModel

<div class="row">
    <div class="col-md-8">
            @using (Html.BeginForm("Login", "Account", new { ReturnUrl = ViewBag.ReturnUrl }, FormMethod.Post, new { @class = "form-horizontal", role = "form" }))
            {
                @Html.AntiForgeryToken()
                <h4>Use a local account to log in.</h4>
                
                @Html.ValidationSummary(true)
               
                    @Html.LabelFor(m => m.UserName, new { @class = "col-md-2 control-label" })
                   
                        @Html.TextBoxFor(m => m.UserName, new { @class = "form-control" })
                        @Html.ValidationMessageFor(m => m.UserName) <br /><br/>

                    @Html.LabelFor(m => m.Password, new { @class = "col-md-2 control-label" })

                        @Html.PasswordFor(m => m.Password, new { @id="pass" })
                        @Html.ValidationMessageFor(m => m.Password)  <br /><br />
                    
                    @Html.CheckBoxFor(m => m.RememberMe)
                    @Html.LabelFor(m => m.RememberMe) <br /><br />
                
                        <input type="submit" value="вход" /> <br /><br />
                <div id="createaccountbutt">
                    @Html.ActionLink("регистрация", "Register") 
               </div>
                <div id="lossspaswordbutt">
                    @Html.ActionLink("забравена парола", "losspassword" )
                </div>
            }

    </div>

    @*<div id="loginform"><div id="logform"><div id="head"><a href="index.html">Log.Layans.org</a></div>
        <div id="login"><span>потребителско име </span> <input name="username" type="text" /> <br /><br /> <span>
            парола</span><input type="text" name="pass" id="pass" /> <br /> <br /></div>
            <div id="log-menu"><div id="logbut"><a href="page.html">Вход</a> </div>
                <div id="remmeber">запомни ме<input name="remmember" type="checkbox" value="" /></div>
                </div></div><div id="createaccountbutt"><a href="#">регистрация</a>
                </div><div id="lossspaswordbutt"><a href"losspassword.html"> забравена парола </a> </div></div>*@


</div>
@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
}